import {createRouter as _createRouter, createWebHistory} from 'vue-router';

import register from  '../views/register.vue'

// 配置路由
const routes = [

    {
        path:'/register',
        component:register,
        name:'register'
    }

]


export function createRouter() {
    return _createRouter({
        history: createWebHistory(),
        routes   //绑定路由组 和 路由管理者
    })
}